package com.ncepu.clubmanagement.service;

import com.ncepu.clubmanagement.exception.NotExistException;
import com.ncepu.clubmanagement.pojo.Affair;
import com.ncepu.clubmanagement.pojo.AffairContent;
import com.ncepu.clubmanagement.pojo.AffairWithUrlResource;
import com.ncepu.clubmanagement.pojo.PageBean;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface AffairService {
    public void addAffair(Map<String,MultipartFile> files, Affair affair) throws Exception;

    PageBean getAffair(Integer type, Integer permission, Integer page,Integer pageSize, Integer personId);

    boolean handlePassedAffair(Integer id, Integer permission) throws Exception;

    boolean handleRejectAffair(Integer id, Integer permission);

    public AffairWithUrlResource addAffairPrev(Map<String, MultipartFile> file, Affair affair) throws Exception;

    AffairContent getAffairContent(Integer id, Integer permission) throws NotExistException;
}
